package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.SpuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * spu信息
 * 
 * @author DoGH
 * @email sunlightcs@gmail.com
 * @date 2023-10-25 10:37:41
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {

    /**
     * 上架商品
     *
     * @param spuId SPU ID
     * @param code
     * @author DuGuanghan
     * @since 2024-04-09 17:21:06
     */
    void updatePublishStatus(@Param("spuId") Long spuId, @Param("code") int code);
}
